import {borderEditSchema} from './borderEditSchema'
import {penEditSchema} from './penEditSchema'
import {fontEditSchema} from './fontEditSchema'

const schemaTypeKeyMap = {
  'penEdit': penEditSchema,
  'borderEdit': borderEditSchema,
  'fontEdit': fontEditSchema
}
export const getFormSchema = function (schemaTypeMap, option) {
  /**
   * form配置输入项初始值 + field
   */
  return {...schemaTypeKeyMap[schemaTypeMap], ...{ field: option.name, value: option && option.value ? option.value : {} }}
}